Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-canvas-with-twemoji-and-discord-emoji

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-canvas-with-twemoji-and-discord-emoji

A fork of node-canvas-with-twemoji with Discord emoji support.

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
167
decreased by-35.77%
Maintainers
1
Weekly downloads
 
Created
Source

node-canvas-with-twemoji-and-discord-emoji

A fork of node-canvas-with-twemoji with Discord emoji support. This is a module that is able to draw emoji on node-canvas.

Installation

$ npm install node-canvas-with-twemoji-and-discord-emoji

npm

Quick Example

const { createCanvas } = require('canvas');
const { fillTextWithTwemoji } = require('node-canvas-with-twemoji-and-discord-emoji');

async function main () {
    const canvas = createCanvas(200, 200);
    const context = canvas.getContext('2d');

    context.fillStyle = '#000000';
    context.font = '30px Arial';
    await fillTextWithTwemoji(context, 'emoji 😉 discord emoji <:id:name>', 100, 100);
}

main();

Dependencies

  • node-canvas GitHub
  • twemoji-parser GitHub

Licence

node-canvas-with-twemoji

Copyright (c) 2020-2021 cagpie / Shun Kobayashi cagpie@gmail.com

Code licensed under the MIT License: http://opensource.org/licenses/MIT

FAQs

Package last updated on 04 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc